package com.example.springbootsenior.ConfigurationProperties.component;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 功能描述:@ConfigurationProperties注解的使用【嵌套属性】
 *
 * @classDesc:
 * @author: 李明杰
 * @date: 2021/11/17 22:10
 * @copyright
 */
@Component
@Data
@ConfigurationProperties(prefix = "urm.application.study")
public class UserInfo {

    private String name;
    private Info info;

    @Data
    private static class Info {
        private Long QQ;
        private String wechat;
    }


}
